package com.itheima.Day11.Zifu;

import java.io.FileReader;
import java.io.IOException;

public class ZiFu_input_Filereader {
    public static void main(String[] args) throws Exception {
        try (FileReader fr = new FileReader("D:\\javajc_ws\\javaEE\\src\\com\\itheima\\Day11\\Zifu\\ceshi");){
            int x ;
            char [] s  = new char[10];
            while((x = fr.read(s)) != -1){
                System.out.print(new String(s,0,x));
            }
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }
}
